﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 打印详情扩展表
    /// </summary>
    public partial class corecmsprinttaskdetail
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int rowId { get; set; } = 0;

        /// <summary>
        /// 打印状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string printStatusName { get; set; } = "";

        /// <summary>
        /// 打印方案
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string printschemeName { get; set; } = "";

        /// <summary>
        /// 打印小票名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string billTypeName { get; set; } = "";

        /// <summary>
        /// 条码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string codeBar { get; set; } = "";

        /// <summary>
        /// 称重条码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string weighCodeBar { get; set; } = "";

        /// <summary>
        /// 称重商品plu
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? weighPlu { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string specUnitName { get; set; } = "";

        /// <summary>
        /// 会员价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal vipPrice { get; set; } = 0;

        /// <summary>
        /// 店名
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string storeName { get; set; } = "";

        /// <summary>
        /// 店地址
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string storeAddress { get; set; } = "";

        /// <summary>
        /// 店地址
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string storePhone { get; set; } = "";

        /// <summary>
        /// 是否选中
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int? Selected { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int dataType { get; set; }

        #region 合计数据
        /// <summary>
        /// 数量合计
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumQuantity { get; set; } = 0;

        /// <summary>
        /// 合计原价金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumAmount { get; set; } = 0;

        /// <summary>
        /// 合计实价金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumRealAmount { get; set; } = 0;

        /// <summary>
        /// 合计做法金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumTaskAmount { get; set; } = 0;

        /// <summary>
        /// 合计加料金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumFeedAmount { get; set; } = 0;

        /// <summary>
        /// 合计优惠金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumDisAmount { get; set; } = 0;

        /// <summary>
        /// 合计实收金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal sumAllAmount { get; set; } = 0;

        /// <summary>
        /// 页码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string pageName { get; set; } = "";

        /// <summary>
        /// 标签对应的打印模板
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public corecmsprintbilltemplate labeltemplate { get; set; }

        #endregion

        /// <summary>
        ///  外卖商品信息
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodInfo", IsNullable = true, IsIgnore = true)]
        public String foodInfo { get; set; }

        /// <summary>
        ///  订单id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderId", IsNullable = true, IsIgnore = true)]
        public long orderId { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        [SugarColumn(ColumnName = "place", IsNullable = true, IsIgnore = true)]
        public string place { get; set; }

        /// <summary>
        /// 有效天数
        /// </summary>
        [SugarColumn(ColumnName = "periodDay", IsNullable = true, IsIgnore = true)]
        public int periodDay { get; set; } = 0;

        /// <summary>
        /// 保质期
        /// </summary>
        [SugarColumn(ColumnName = "periodDate", IsNullable = true, IsIgnore = true)]
        public DateTime periodDate { get; set; } = new DateTime();
    }
}
